package com.linln.modules.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linln.modules.business.domain.Attendance;
import com.linln.modules.business.dto.AttendanceDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface MapperAttendance extends BaseMapper<Attendance> {

    /**
     * 获取考勤记录
     *
     * @return
     */
    IPage<Attendance> selectAttendance(Attendance attendance);

    /**
     * 统计迟到次数
     *
     * @param recordTimeStr 日期格式 eg 201001
     * @return
     */
    List<AttendanceDTO> statLateReport(@Param("recordTimeStr") String recordTimeStr);


}
